package com.xdf.zipperdye.dao.business;

import com.xdf.zipperdye.model.Product;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ProductMapper {
    int deleteByPrimaryKey(Integer iid);

    int insert(Product record);

    int insertSelective(Product record);

    Product selectByPrimaryKey(Integer iid);

    int updateByPrimaryKeySelective(Product record);

    int updateByPrimaryKey(Product record);

    List<Product> selectAll();
    List<Product> selectBySid(@Param("sid") String sid);

}